#pragma once
#include "simple_library/public/simple_core_minimal/simple_c_core/simple_core_minimal.h"

_CRT_BEGIN_C_HEADER
typedef struct
{
	char name[MAX_PATH];
	DWORD type;
	char buf[1024];
}freg_value;

typedef struct
{
	HKEY hkey;
	char filename[MAX_PATH];

	int size_value;
	freg_value value[1024];
}freg_info;

void init_feg_info(freg_info *info);

bool register_info(const freg_info *info);

bool delete_register_info(HKEY hkey, const char *filename);

bool delete_reg_key(HKEY hkey, const char *filename, const char *subkey_name);
_CRT_END_C_HEADER